#include "SDL_Wrappers.h"
#include <stdexcept>
#include "Log.h"

namespace SCION_UTIL
{
    void SDL_Destroyer::operator()(SDL_Window* window) const
    {
        SCION_INFO("SDL_DestroyWindow");
        SDL_DestroyWindow(window);
    }
    void SDL_Destroyer::operator()(SDL_Gamepad* controller) const
    {
        SCION_INFO("SDL_CloseGamepad");
        // int joystick_index = 0;
        // SDL_OpenGamepad(joystick_index);
        SDL_CloseGamepad(controller);
    }
    void SDL_Destroyer::operator()(SDL_Cursor* window) const
    {
        SCION_INFO("SDL_DestroyCursor");
        SDL_DestroyCursor(window);
    }

    Controller make_shared_controller(SDL_Gamepad* controller) {
        return Controller();
    }

    Cursor make_shera_cursor(SDL_Cursor* cursor) {
        return Cursor();
    }
    void testLog()
    {
        SCION_INIT();
        SCION_INFO("Hello wrappers");
    }
}